﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 寻找素数因子
{
    class Program
    {
        static void Main(string[] args)
        {
            int num = Convert.ToInt32(Console.ReadLine());
            for(int i=2;i<=num;)
            {
                if (num % i == 0)
                {
                    Console.WriteLine(i);
                    num /= i;
                }
                else i++;
            }

        }
    }
}
